package cn.hxzy.ownerSource.clients.fallback;

import cn.hxzy.common.Result;
import cn.hxzy.entity.siteEntity.Site;
import cn.hxzy.ownerSource.clients.SiteClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

@Slf4j
public class SiteClientFallbackFactory implements FallbackFactory<SiteClient> {
    @Override
    public SiteClient create(Throwable throwable) {
        return null;
    }

//    @Override
//    public SiteClient create(Throwable throwable) {
//        return new SiteClient() {
//            @Override
//            public Result selectById(String id) {
//                log.error("查询站点异常",throwable);
//                return Result.error().message("发生了异常");
//            }
//        };
//    }
}
